Skip to content

fix(sheet): keep the frame's bottom sheet inside its frame - #90

Merged
Yundi339 merged 1 commit into
mainfrom
fix/center-sheet-frame-offset
Nov 27, 2026
Merged

Yundi339 merged 1 commit into
mainfrom
fix/center-sheet-frame-offset

Conversation

@Yundi339

@Yundi339 Yundi339 commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

说明

控制面板 frame 里居中的弹窗靠 shell 的 --m-frame-dx 平移到整个窗口的中心;frame 宽度低于 600 时弹窗变为横跨 frame 的底部弹窗,但平移没有被丢弃,满宽弹窗整体被推出 frame 边缘(侧栏收起 96px 时左移 48px、展开 240px 时左移 120px),左缘被 iframe 裁掉,输入框和文字不完整。

修改

  • 窄窗口媒体查询中为 .m-sheet--center 丢弃平移(translate: none):底部弹窗与 frame 边缘对齐、停靠底部,交互元素完整显示。
  • frame ≥600px 的行为不变:弹窗仍居中于整个窗口,宽度公式保证平移后不出界。
  • 新增 test/centersheet.test.js 锁定平移与丢弃规则;相邻 dialog/modalbridge 测试 8/8 通过。

@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 30 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6c030b55-c9a8-4b23-9fb4-f1de45f81b07
Commits

Reviewing files that changed from the base of the PR and between a7e4287 and 348b53d.

Files selected for processing: 2

  • src/css/expressive.css
  • test/centersheet.test.js
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Yundi339
Yundi339 merged commit c6dd4b3 into main Nov 27, 2026
7 checks passed
@Yundi339 Yundi339 changed the title fix(sheet): keep the frame's bottom sheet inside its frame fix(sheet): centre the sheet on the window only when the frame has the room Nov 27, 2026
@Yundi339 Yundi339 changed the title fix(sheet): centre the sheet on the window only when the frame has the room fix(sheet): keep the frame's bottom sheet inside its frame Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant